<script>
 $(document).ready(function ()
    {
        $('#data').dataTable( {
            "sPaginationType": "full_numbers",
            "bLengthChange": false,
            //"bInfo": false,
            "aaSorting": [[ 0, "asc" ]],
            //"bFilter": false
        });
    });
</script>
<fieldset>


    <div class="suppliers index">
    <h2><?php echo __('Suppliers'); ?></h2>
    <br />

    <div class="newbutton">
        <ul><li><?php echo $this->Html->link(__('Add New Supplier'), array('action' => 'add')); ?></li></ul>
    </div>
    <br /><br />
    
    <table id="data" class="table" cellpadding="0" cellspacing="0"  border="0">

        <thead>
            <tr>
                <th>Supplier Name</th>
                <th>Contact</th>
                <th>Phone</th>
                <th>Mobile</th>
                <th>Email</th>
                <th class="actions"><?php echo __('Actions'); ?></th>
            </tr>
        </thead>

        <tbody>
            <?php foreach ($suppliers as $supplier): ?>
                <tr>
                    <td><?php echo h($supplier['Supplier']['supplierName']); ?>&nbsp;</td>
                    <td><?php echo h($supplier['Supplier']['contactPersonName']); ?>&nbsp;</td>
                    <td><?php echo h($supplier['Supplier']['phone1']); ?>&nbsp;</td>
                    <td><?php echo h($supplier['Supplier']['phone2']); ?>&nbsp;</td>
                    <td><?php echo h($supplier['Supplier']['email']); ?>&nbsp;</td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View'), array('action' => 'view', $supplier['Supplier']['id'])); ?>
                        <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $supplier['Supplier']['id'])); ?>
                        <?php echo $this->Form->postLink(__('Archive'), array('action' => 'delete', $supplier['Supplier']['id']), null, __('Are you sure you want to archive supplier %s ?', $supplier['Supplier']['supplierName'])); ?>
                    </td>
                </tr>

            <?php endforeach; ?>
        </tbody>
    </table>

   
    
</div>

</fieldset>


